<template>
    <ul>
        <li v-for="str in arr" :key="str">{{str}}</li>
        <button @click=btn>走一走</button>
    </ul>
</template>

<script>
    export default {
        data() {
            return {
                arr: ['帅哥', '美女', '程序员', '小鸭子']
            }
        },
        methods: {
            btn() {
                this.arr.push(this.arr[0])
                this.arr.shift()
            }
        }
    }
</script>

<style>

</style>